﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace AudioDemo.View
{
    /// <summary>
    /// source1.xaml 的交互逻辑
    /// </summary>
    public partial class source1 : Window
    {
        public source1()
        {
            InitializeComponent();
        }

private void button2_Click(object sender, RoutedEventArgs e)
{
    //后台操作资源方法
    this.Resources["Res1"] = new TextBlock() {Text="天涯共此时" };
    this.Resources["Res2"] = new TextBlock() { Text = "天涯共此时" };
}
    }
}
